package com.jet.summary.open;

import com.jet.core.result.ResultJson;
import com.jet.summary.domain.dto.SummaryCommissionDto;
import com.jet.summary.service.SummaryCommissionService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author dcl
 * @since 2024/4/8 10:26
 */
@RestController
@RequestMapping("/open/clerk/commission")
public class OpenSummaryCommissionController {

    @Resource
    private SummaryCommissionService commissionService;

    @PostMapping("/summary")
    public ResultJson<Void> summary(@RequestBody(required = false) SummaryCommissionDto dto) {
        commissionService.summary(dto);
        return ResultJson.ok();
    }
}
